﻿using Basic.FormGatewaryModular.Interface;
using RpcStore.RemoteModel.ServerGroup.Model;
using WeDonekRpc.ApiGateway.Attr;
using WeDonekRpc.HttpApiGateway;

namespace Basic.FormGatewaryModular.Api
{
    [ApiRouteName("/form/rpc/sysType/{name}")]
    internal class RpcSysTypeApi : ApiController
    {
        private readonly IRpcSysTypeService _Service;

        public RpcSysTypeApi ( IRpcSysTypeService service )
        {
            this._Service = service;
        }

        public ServerGroupList[] GetSysGroup ()
        {
            return this._Service.GetSysGroup();
        }
    }
}
